<!--

生成最基本的Restful模板页面

顶部有按（门店、时间段*）查询 添加按钮

包含一个 ag-grid 列表，默认表头只有一行，每列都可查询，默认每条最后有打开、删除按钮

有新增、修改弹出层
-->

<div class="view-header">
    <!-- <div class="view-header-left">

        
        <div class="view-header-item color-open" title="[[TITLE_HEADER_ADD]]"
             ng-click="add_open = !add_open">
            <i class="fa fa-plus"></i>
        </div>

        <div class="view-header-item color-close above-cover"
             title="[[TITLE_HEADER_ADD_CLOSE]]" ng-click="add_open = !add_open"
             ng-show="add_open">
            <i class="fa fa-close"></i>
        </div>

        <div class="view-header-item color-check above-cover"
             title="确认添加"
             ng-click='form_add.$valid?submit_add():{};'
             title="添加提交{{form_add.$invalid?'请完成表单后再提交!':''}}"
             ng-show="add_open">

            <i class="fa fa-check" ng-show="form_add.$valid"></i>
            <i class="fa fa-ban" ng-show="form_add.$invalid"></i>

        </div>


        <div class="view-header-item color-close above-cover"
             title="[[TITLE_HEADER_EDIT_CLOSE]]"
             ng-click="edit_open = !edit_open" ng-show="edit_open">
            <i class="fa fa-close"></i>
        </div>

        <div class="view-header-item color-check above-cover"
             title="确认修改"
             ng-click='form_edit.$valid?submit_edit():{};'
             title="修改提交{{form_add.$invalid?'请完成表单后再提交!':''}}"
             ng-show="edit_open">

            <i class="fa fa-check" ng-show="form_edit.$valid"></i>
            <i class="fa fa-ban" ng-show="form_edit.$invalid"></i>
        </div>

    </div> -->

</div>
<div class="view-content ">
    <div ag-grid="grid" class="ag-fresh ag-custom-center" style="height :100%"></div>
</div>


<!-- add -->
<div class="data-overlay" ng-show="add_open">
    <div class="overlay-container">
        <div class="overlay-header">添加入库记录</div>
        <div ng-form name="form_add" novalidate="novalidate">
        	<div class="new-block" >
				<div class="new-item">
					<span>creator</span>
					<input ng-model="record_add.creator" />
				</div>
				<div class="new-item">
					<span>quantity</span>
					<input ng-model="record_add.quantity" />
				</div>
				<div class="new-item">
					<span>create_time</span>
					<input ng-model="record_add.create_time" />
				</div>
				<div class="new-item">
					<span>color</span>
					<input ng-model="record_add.color" />
				</div>
				<div class="new-item">
					<span>stock_io</span>
					<input ng-model="record_add.stock_io" />
				</div>
				<div class="new-item">
					<span>remark</span>
					<input ng-model="record_add.remark" />
				</div>
				<div class="new-item">
					<span>register_date</span>
					<input ng-model="record_add.register_date" />
				</div>
				<div class="new-item">
					<span>source</span>
					<input ng-model="record_add.source" />
				</div>
				<div class="new-item">
					<span>inventory</span>
					<input ng-model="record_add.inventory" />
				</div>
				<div class="new-item">
					<span>version</span>
					<input ng-model="record_add.version" />
				</div>
				<div class="new-item">
					<span>stock_sn</span>
					<input ng-model="record_add.stock_sn" />
				</div>
				<div class="new-item">
					<span>stock_id</span>
					<input ng-model="record_add.stock_id" />
				</div>
				<div class="new-item">
					<span>miles</span>
					<input ng-model="record_add.miles" />
				</div>
				<div class="new-item">
					<span>create_by</span>
					<input ng-model="record_add.create_by" />
				</div>
				<div class="new-item">
					<span>vid</span>
					<input ng-model="record_add.vid" />
				</div>
				<div class="new-item">
					<span>transmission</span>
					<input ng-model="record_add.transmission" />
				</div>
				<div class="new-item">
					<span>license_plate</span>
					<input ng-model="record_add.license_plate" />
				</div>
				<div class="new-item">
					<span>model</span>
					<input ng-model="record_add.model" />
				</div>
				<div class="new-item">
					<span>displacement</span>
					<input ng-model="record_add.displacement" />
				</div>
				<div class="new-item">
					<span>vehicle_status</span>
					<input ng-model="record_add.vehicle_status" />
				</div>
				<div class="new-item">
					<span>id</span>
					<input ng-model="record_add.id" />
				</div>
				<div class="new-item">
					<span>source_id</span>
					<input ng-model="record_add.source_id" />
				</div>
				<div class="new-item">
					<span>brand</span>
					<input ng-model="record_add.brand" />
				</div>
				<div class="new-item">
					<span>status</span>
					<input ng-model="record_add.status" />
				</div>
			</div>
		</div>
    </div>
</div>

<div class="data-overlay" ng-show="edit_open">
    <div class="overlay-container">
        <div class="overlay-header">stock_in_book_edit</div>
        <div ng-form name="form_edit" novalidate="novalidate">
        </div>
        <div class="new-block" >
	<div class="new-item">
		<span>creator</span>
		<input ng-model="record_edit.creator" />
	</div>
	<div class="new-item">
		<span>quantity</span>
		<input ng-model="record_edit.quantity" />
	</div>
	<div class="new-item">
		<span>create_time</span>
		<input ng-model="record_edit.create_time" />
	</div>
	<div class="new-item">
		<span>color</span>
		<input ng-model="record_edit.color" />
	</div>
	<div class="new-item">
		<span>stock_io</span>
		<input ng-model="record_edit.stock_io" />
	</div>
	<div class="new-item">
		<span>remark</span>
		<input ng-model="record_edit.remark" />
	</div>
	<div class="new-item">
		<span>register_date</span>
		<input ng-model="record_edit.register_date" />
	</div>
	<div class="new-item">
		<span>source</span>
		<input ng-model="record_edit.source" />
	</div>
	<div class="new-item">
		<span>inventory</span>
		<input ng-model="record_edit.inventory" />
	</div>
	<div class="new-item">
		<span>version</span>
		<input ng-model="record_edit.version" />
	</div>
	<div class="new-item">
		<span>stock_sn</span>
		<input ng-model="record_edit.stock_sn" />
	</div>
	<div class="new-item">
		<span>stock_id</span>
		<input ng-model="record_edit.stock_id" />
	</div>
	<div class="new-item">
		<span>miles</span>
		<input ng-model="record_edit.miles" />
	</div>
	<div class="new-item">
		<span>create_by</span>
		<input ng-model="record_edit.create_by" />
	</div>
	<div class="new-item">
		<span>vid</span>
		<input ng-model="record_edit.vid" />
	</div>
	<div class="new-item">
		<span>transmission</span>
		<input ng-model="record_edit.transmission" />
	</div>
	<div class="new-item">
		<span>license_plate</span>
		<input ng-model="record_edit.license_plate" />
	</div>
	<div class="new-item">
		<span>model</span>
		<input ng-model="record_edit.model" />
	</div>
	<div class="new-item">
		<span>displacement</span>
		<input ng-model="record_edit.displacement" />
	</div>
	<div class="new-item">
		<span>vehicle_status</span>
		<input ng-model="record_edit.vehicle_status" />
	</div>
	<div class="new-item">
		<span>id</span>
		<input ng-model="record_edit.id" />
	</div>
	<div class="new-item">
		<span>source_id</span>
		<input ng-model="record_edit.source_id" />
	</div>
	<div class="new-item">
		<span>brand</span>
		<input ng-model="record_edit.brand" />
	</div>
	<div class="new-item">
		<span>status</span>
		<input ng-model="record_edit.status" />
	</div>
</div>

    </div>
</div>